summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2024-02-18 15:18:54 +0100
committert895 <clombardo169@gmail.com>2024-02-18 15:18:54 +0100
commita1c4f53c8c764396225375e7abaa8c51934b1e23 (patch)
tree8c967323a8fd279ff38ea95cab24db458c6cb9ea
parentMerge pull request #13047 from anpilley/import-firmware (diff)
downloadyuzu-a1c4f53c8c764396225375e7abaa8c51934b1e23.tar
yuzu-a1c4f53c8c764396225375e7abaa8c51934b1e23.tar.gz
yuzu-a1c4f53c8c764396225375e7abaa8c51934b1e23.tar.bz2
yuzu-a1c4f53c8c764396225375e7abaa8c51934b1e23.tar.lz
yuzu-a1c4f53c8c764396225375e7abaa8c51934b1e23.tar.xz
yuzu-a1c4f53c8c764396225375e7abaa8c51934b1e23.tar.zst
yuzu-a1c4f53c8c764396225375e7abaa8c51934b1e23.zip
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
index 0b70fccec..c962558a7 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
@@ -80,8 +80,14 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
super.onCreate(savedInstanceState)
InputHandler.updateControllerData()
- val playerOne = NativeConfig.getInputSettings(true)[0]
- if (!playerOne.hasMapping() && InputHandler.androidControllers.isNotEmpty()) {
+ val players = NativeConfig.getInputSettings(true)
+ var hasConfiguredControllers = false
+ players.forEach {
+ if (it.hasMapping()) {
+ hasConfiguredControllers = true
+ }
+ }
+ if (!hasConfiguredControllers && InputHandler.androidControllers.isNotEmpty()) {
var params: ParamPackage? = null
for (controller in InputHandler.registeredControllers) {
if (controller.get("port", -1) == 0) {